package com.findweb.redis;

import java.util.Set;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class Test {
	
	private static JedisPool pool = new JedisPool(new JedisPoolConfig(), "localhost");

//	public static void main(String[] args) {
//
//		try (Jedis jedis = pool.getResource()) {
//			/// ... do stuff here ... for example
//			jedis.set("foo", "bar");
//			String foobar = jedis.get("foo");
//			System.out.println(foobar);
//			jedis.zadd("sose", 0, "car");
//			jedis.zadd("sose", 0, "bike");
//			Set<String> sose = jedis.zrange("sose", 0, -1);
//			System.out.println(sose);
//		}
//		/// ... when closing your application:
//		pool.destroy();
//
//	}
	
	

}
